package com.example.kuaizu.job;

import com.example.kuaizu.service.InTalentService;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;


/**
 * @author: wangmx15
 * @date: 2025/9/6
 * 橄榄枝重置定时
 **/
@Component
@RequiredArgsConstructor
@Log4j2
public class OliveBranchResetJob extends BaseJob {
    private final InTalentService talentService;
    @Override
    void doExecute() {
        talentService.oliveBranchResetEveryDay();
    }

    /**
     * 重置每天的橄榄枝数量
     */
    @Scheduled(cron = "0 0 1 * * *")
    //@Scheduled(cron = "*/5 * * * * *")
    public void sendProjectMessageDlxQueues() {
        this.execute();
    }


}
